package com.bms.common.bussiness.member.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xj
 * @since 2018-08-14
 */
@TableName("tb_member_info")
public class MemberInfo extends Model<MemberInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    
    private String openId;
    /**
     * 1男2女
     */
    private Integer sexy;
    private Date birthday;
    /**
     * 证件类型  1身份证  2护照
     */
    private String cardType;
    /**
     * 证件号码
     */
    private String cardNo;
    private String province;
    private String city;
    private String area;
    private String phone;
    private String historyCert;
    private String testCert;
    /**
     * 收货地址
     */
    private String address;
    /**
     * 血型
     */
    private String bloodType;
    private String size;
    /**
     * 紧急联系人
     */
    private String contact;
    private String contactPhone;
    private Date createTime;
    private Date updateTime;
    
    

    public String getHistoryCert() {
		return historyCert;
	}

	public void setHistoryCert(String historyCert) {
		this.historyCert = historyCert;
	}

	public String getTestCert() {
		return testCert;
	}

	public void setTestCert(String testCert) {
		this.testCert = testCert;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSexy() {
        return sexy;
    }

    public void setSexy(Integer sexy) {
        this.sexy = sexy;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getBloodType() {
		return bloodType;
	}

	public void setBloodType(String bloodType) {
		this.bloodType = bloodType;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "MemberInfo [id=" + id + ", name=" + name + ", openId=" + openId + ", sexy=" + sexy + ", birthday="
				+ birthday + ", cardType=" + cardType + ", cardNo=" + cardNo + ", province=" + province + ", city="
				+ city + ", area=" + area + ", phone=" + phone + ", historyCert=" + historyCert + ", testCert="
				+ testCert + ", address=" + address + ", bloodType=" + bloodType + ", size=" + size + ", contact="
				+ contact + ", contactPhone=" + contactPhone + ", createTime=" + createTime + ", updateTime="
				+ updateTime + "]";
	}

    
}
